package com.zc.manager.network.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.manager.network.domain.IotDeviceGateway;

import java.util.List;

/**
 * 设备网关Service接口
 *
 * @author zhaoxianglong
 * @date 2022-11-7
 */
public interface IotDeviceGatewayService extends IService<IotDeviceGateway> {

    List<IotDeviceGateway> selectIotDeviceGatewayList(IotDeviceGateway iotDeviceGateway);

    /**
     * 根据启动状态查询设备网关信息
     * @param startState
     * @return
     */
    List<IotDeviceGateway> selectIotDeviceGatewayByStartState(String startState);

    boolean addDeviceGateway(IotDeviceGateway iotDeviceGateway);

    boolean editDeviceGateway(IotDeviceGateway iotDeviceGateway);

    IotDeviceGateway getDeviceGateway(Long id);

    boolean startupDeviceGateway(Long id);

    boolean shutdownDeviceGateway(Long id);

    boolean removeByIds(List<Long> ids);
}
